import request from '@/utils/request.js'


/**
 * 小程序手机号登录
 */
export const wxMobileLogin = (data) => {
    // return request(`User/login`, {'account': '13563290424', 'password': '111111'}, 'post')
    return request(`User/wxMobileLogin`, data, 'post')
}

/**
 * 个人信息
 */
export const getUserInfo = (data) => {
    return request(`User/getUserInfo`, data, 'post')
}

/**
 * 修改个人信息
 */
export const profile = (data) => {
    return request(`User/profile`, data, 'post')
}

/**
 * 设置
 */
export const getseting = (data) => {
    return request(`User/getseting`, data, 'post')
}

/**
 * 投诉建议
 */
export const createFeedBack = (data) => {
    return request(`User/createFeedBack`, data, 'post')
}

/**
 * 用户提现
 */
export const withdraw = (data) => {
    return request(`User/withdraw`, data, 'post')
}

/**
 * 添加关注
 */
export const addFollow = (data) => {
    return request(`User/addFollow`, data, 'post')
}

/**
 * 取消关注
 */
export const deleteFollow = (data) => {
    return request(`User/deleteFollow`, data, 'post')
}

/**
 * 用户地址
 */
export const getUserAddress = (data) => {
    return request(`User/getUserAddress`, data, 'post')
}

/**
 * 添加用户地址
 */
export const creatAddress = (data) => {
    return request(`User/creatAddress`, data, 'post')
}

/**
 * 获取用户默认地址
 */
export const getTopAddress = (data) => {
    return request(`User/getTopAddress`, data, 'post')
}

/**
 * 删除地址
 */
export const delAddress = (data) => {
    return request(`User/delAddress`, data, 'post')
}

/**
 * 地址详情
 */
export const getAddressInfo = (data) => {
    return request(`User/getAddressInfo`, data, 'post')
}